package com.jshoperxms.service.impl;

import javax.annotation.Resource;
import javax.transaction.Transactional;

import com.jshoperxms.controller.utils.DateTools;
import org.springframework.stereotype.Service;

import com.jshoperxms.controller.utils.BaseTools;
import com.jshoperxms.entity.SerialT;
import com.jshoperxms.service.SerialTService;

@Service("serial")
public class Serial {


	@Resource
	private SerialTService serialTService;

	

	@Transactional
	public String Serialid(String serialkey) {
		String serialid = null;
		SerialT list = this.serialTService.SerialTlastId(serialkey);
		serialid = DateTools.tagdate() + list.getHead() + list.getLastid();
		return serialid;
	}

}
